<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>销售人员</title>
		<link rel="stylesheet" href="<?php echo __CSS__;?>mobile.css" />
	</head>
	<body class="i">
		<header>
			<a class="h-left back" href="javascript:history.go(-1);"></a>
			<h3>查看已分配任务</h3>
		</header>
		<div class="ja-nav">
			<a class="nav-a na-on" href="javascript:void(0);"><span>未完成</span><i class="b-right"></i></a>
			<a class="nav-a" href="javascript:void(0);"><span>已完成</span></a>
			<div class="clear"></div>
		</div>
                 <?php if($nodata['tname'] != null): ?><div class="no-finish">
                                <div class="f-box">
                                        <div class="fb-img"><img src="<?php echo __IMG__;?>file/<?php echo ($nodata["bus_logo"]); ?>" /></div>
                                        <p class="fb-tit"><?php echo ($nodata["tname"]); ?></p>
                                        <p class="fb-add"><?php echo ($nodata["province"]); echo ($nodata["city"]); echo ($nodata["discrict"]); echo ($nodata["address"]); ?></p>
                                        <p class="fb-time"><?php echo (date("Y.m.d",$nodata["created"])); ?></p>
                                        <a class="c-btn fb-btn" href="<?php echo U('api/user/JobSign');?>">去签到</a>
                                </div>
                        </div><?php endif; ?>     
               
		<div class="no-finish">
                    <?php if(is_array($yesdata)): foreach($yesdata as $key=>$v): ?><div class="f-box">
                                <div class="fb-img"><img src="<?php echo __IMG__;?>file/<?php echo ($v["bus_logo"]); ?>" /></div>
				<p class="fb-tit"><?php echo ($v["tname"]); ?></p>
				<p class="fb-add"><?php echo ($v["province"]); echo ($v["city"]); echo ($v["discrict"]); echo ($v["address"]); ?></p>
				<p class="fb-time"><?php echo (date("Y.m.d",$v["created"])); ?></p>
				<a class="c-btn fb-btn c-btn-gray" href="javascript:void(0)">已签到</a>
			</div><?php endforeach; endif; ?>		
		</div>
        
        
		<div class="finish" style="display: none;">
			<?php if(is_array($enddata)): foreach($enddata as $key=>$v): ?><div class="f-box">
                                <div class="fb-img"><img src="<?php echo __IMG__;?>file/<?php echo ($v["bus_logo"]); ?>" /></div>
				<p class="fb-tit"><?php echo ($v["tname"]); ?></p>
				<p class="fb-add"><?php echo ($v["province"]); echo ($v["city"]); echo ($v["discrict"]); echo ($v["address"]); ?></p>
				<p class="fb-time"><?php echo (date("Y.m.d",$v["created"])); ?></p>
				
			</div><?php endforeach; endif; ?>
		</div>
		<p class="c-bot">只可查询最近一月的分配记录</p>
		<script type="text/javascript" src="<?php echo __LIBS__;?>jquery/jquery-1.11.1.min.js"></script>
		<script type="text/javascript" src="<?php echo __JS__;?>mobile.js"></script>
	</body>
</html>